home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 1095 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.3 KB

  1. From: Julian Reschke <reschke@GOEDEL.UNI-MUENSTER.DE>
  2. Subject: Re: tosfs, faster hash function...
  3. Date: Fri, 25 Feb 94 16:11:52 MET DST
  4. In-Reply-To: <199402251506.HAA08153@netcom9.netcom.com>; from "Eric R. Smith" at Feb 25, 94 7:06 am
  5.  
  6. > As Julian pointed out, CRCs cannot be guaranteed to be unique. For that
  7. > reason, I don't think it's a good idea to use them for inodes in tosfs.
  8. > The current scheme is inefficient for some purposes, but much safer,
  9. > and I'll take safety over efficiency any day.
  10. > Regards,
  11. > Eric
  12.  
  13. Eric, the current implementation is NOT safer. Inodes have to be different
  14. for different files, BUT they have to be identical for identical files,
  15. too. The current implementation satisfies the first, but ignores the
  16. second point.
  17.  
  18. I think the current implementation is useless. If you really want to keep
  19. it, there should be a portable method to *inquire* whether the inodes
  20. are 'real' or just a counter.
  21.  
  22. Juergen, re start cluster as inode: for empty files, one could use
  23. (start cluster of directory << 16) | (index of file within directory)
  24. (note that cluster numbers are always 16 bit, while the inode has 32 bits).
  25.  
  26. -- 
  27. ---------------------------------------------------
  28. Julian F. Reschke, Hensenstr. 142, D-48161 Muenster
  29.  eMail: reschke@math.uni-muenster.de jr@ms.maus.de
  30. ___________________________________________________
  31.